import Vue from 'vue'
// 直接将Vue组件作为Vue.extend的参数
import FlowSendModel from "./FlowSendModel";
import store from "@/store";
import router from "@/router"

const showFlowSendModel = (data) => {
    const choiceTreeConstructor = Vue.extend(FlowSendModel);
    const instance = new choiceTreeConstructor({
        el: document.createElement("div"),
        store,
        router
    });

    document.querySelector("body").appendChild(instance.$el);
    return instance.show(data);
}

export default showFlowSendModel;